﻿using MediatR;
using Microsoft.Extensions.Caching.Memory;

namespace Core.Caching;

/// <summary>
/// 启用缓存
/// </summary>
/// <typeparam name="TResponse"></typeparam>
public interface ICacheableRequest<TResponse> : IRequest<TResponse>, ICacheableRequest
{

}

/// <summary>
/// 启用缓存
/// </summary>
public interface ICacheableRequest
{
    string CacheKey => string.Empty;
    IEnumerable<string>? Tags { get; }
}
